﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AMain
{
    public class Error
    {
        private int errorNumber;
        private String description;

        public Error(int errorNumber, String description)
        {
            this.errorNumber = errorNumber;
            this.description = description;
        }

        public String getDescription()
        {
            return description;
        }

        public String ToString()
        {
            if (errorNumber == 0 || description.Equals(""))
            {
                return "";
            }
            return "Error " + errorNumber + "; " + description;
        }
    }
}
